package org.elephas.webapp.frontend.component.common.form;

import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.model.IModel;

public class ShinyForm extends Form {
	private static final long serialVersionUID = 1L;
	
	private ShinyFormVisitor shinyVisitor = new ShinyFormVisitor();

	public ShinyForm(String id) {
		super(id);
	}

	public ShinyForm(String id, IModel model) {
		super(id, model);
	}

	@Override
	protected void onBeforeRender() {
		super.onBeforeRender();
		visitFormComponents(shinyVisitor);
	}
}
